package com.ruoyi.web.controller.teaching;


import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.teaching.domain.PlatformCCourseLearnTime;
import com.ruoyi.teaching.service.PlatformCCourseLearnTimeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 王旭
 * @since 2025-02-22
 */
@RestController
@RequestMapping("/platform/courseLearnTime")
@Api(tags = "platform-课程学习时长管理")
public class PlatformCCourseLearnTimeController {
    @Autowired
    private PlatformCCourseLearnTimeService platformCCourseLearnTimeService;

    /**
     * 新增学习时间数据
     */
    @PostMapping("/addCourseLearnTime")
    @ApiOperation(value = "新增学习数据", notes = "新增学习数据")
    public AjaxResult addCourseLearnTime(@RequestBody PlatformCCourseLearnTime platformCCourseLearnTime){
        return platformCCourseLearnTimeService.addCourseLearnTime(platformCCourseLearnTime);
    }

}

